﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using Final.App_Code;
using System.Data;

namespace Final
{
    public partial class subj_sele : System.Web.UI.Page
    {
        
        protected void clearButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("change_subj.aspx");
        }

        protected void Page_Load(object sender, EventArgs e)
        {            
           Student s = Change_subjDataClass.GetStudentInfo((String)Session["id"]);

            lbl_name.Text = s.Name;
            lbl_adminNo.Text = s.Adminno;
            lbl_coursecode.Text = s.Coursecode;
            lbl_courseName.Text = s.Coursename;
            lbl_email.Text = s.Email;
            lbl_module.Text = s.Module;
            lbl_contactNo.Text = s.Contact.ToString();
 
        }

        protected void submitButton_Click(object sender, EventArgs e)
        {
            Session["sub1"] = newsubjDropdownlist1.SelectedItem.ToString();
            Session["sub2"] = newsubjDropdownlist2.SelectedItem.ToString();
            Session["sub3"] = newsubjDropdownlist3.SelectedItem.ToString();

            Session["sub1code"] = newsubjDropdownlist1.SelectedValue.ToString();
            Session["sub2code"] = newsubjDropdownlist2.SelectedValue.ToString();
            Session["sub3code"] = newsubjDropdownlist3.SelectedValue.ToString();

            Response.Redirect("change_subj_confirmation.aspx");
        }
    }
}
